using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cocos2d;

namespace CampaignWP7
{
    public class AboutUs : CCLayer
    {
        public override bool init()
        {
            CCDirector.sharedDirector().deviceOrientation = ccDeviceOrientation.CCDeviceOrientationPortrait;//.CCDeviceOrientationLandscapeLeft;

            
            if (!base.init())
            {
                return false;
            }

           // this.m_bIsTouchEnabled = true;

            CCSprite pSprite = CCSprite.spriteWithFile("Menu/AboutUs");

            CCSize size = CCDirector.sharedDirector().getWinSize();

            pSprite.position = new CCPoint(size.width / 2, size.height / 2);

            this.addChild(pSprite, 1);

            return true;


        }

        public static CCScene scene()
        {

            CCScene scene = CCScene.node();

            CCLayer laboutUs = AboutUs.node();

            scene.addChild(laboutUs);

            return scene;
        }

        public static new CCLayer node()
        {
            AboutUs ret = new AboutUs();
            if (ret.init())
            {
                return ret;
            }
            else
            {
                ret = null;
            }

            return ret;
        }

    }
}
